import { Column, PrimaryGeneratedColumn } from "typeorm";
import { EntityModel } from "@midwayjs/orm";

@EntityModel("collectors", { schema: "simfeng" })
export class Collectors {
  @PrimaryGeneratedColumn({ type: "int", name: "id" })
  id: number;

  @Column("int", { name: "company_id", nullable: true })
  companyId: number | null;

  @Column("int", { name: "serise_id", nullable: true })
  seriseId: number | null;

  @Column("varchar", { name: "name", nullable: true, length: 255 })
  name: string | null;

  @Column("varchar", { name: "push_host", nullable: true, length: 255 })
  pushHost: string | null;

  @Column("varchar", { name: "push_port", nullable: true, length: 255 })
  pushPort: string | null;

  @Column("varchar", { name: "uri", nullable: true, length: 255 })
  uri: string | null;
}
